import { EffectType } from "./messageEnum";

/**
 * @description：设备状态
 */
export enum DeviceStatusEnum {
	ALL = "",
	ALL_LABEL = "全部",
	ONLINE = "online",
	ONLINE_LABEL = "在线",
	OFFLINE = "offline",
	OFFLINE_LABEL = "离线",
	ALARM = "alarm",
	ALARM_LABEL = "告警"
}
/**
 * @description：产品组态
 */
export enum ProductStatusEnum {
	ALL = "",
	DEPLOY = "true",
	DEPLOY_LABEL = "已发布",
	DEVELOP = "false",
	DEVELOP_LABEL = "未发布"
}

// export const ServiceStatusLabels = {
// 	running: "运行中",
// 	stopped: "已停止",
// 	fatal: "无法启动",
// 	"retry wait": "重启",
// 	stopping: "停止中",
// 	pulling: "镜像下载中"
// };
export const DeviceType: { [key: string]: any } = {
	device: "设备",
	soft_gateway: "软网关",
	gateway: "网关设备"
};
export const SvcType: { [key: string]: any } = [
	{ label: "二进制安装", value: "bin" },
	{ label: "容器安装", value: "docker" },
	{ label: "web资源", value: "web" }
];
export const ServiceStatusTypes: { [key: string]: EffectType } = {
	running: EffectType.success,
	stopped: EffectType.warning,
	stopping: EffectType.warning,
	fatal: EffectType.danger,
	"retry wait": EffectType.danger
};
